<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $baseTitle; ?> - <?php echo $pageTitle; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/style.css" />
</head>

<body>
<?php $this->load->view( 'cartbar', $cartTotal ); ?>
<div id="wrapper">
<div class="productFull">
<?php
        $html = '';
        
		$html .= '<img src="' . base_url() . 'images/' . $product[0]['Image'] . '" width="150" height="150" />';
		
		$html .= '<h2>' . $product[0]['Name'] . '</h2>';
		
		$html .= '<p>' . $product[0]['Description'] . '</p>';
		
		$html .= '<div class="info">';
		    $html .= '<p>Pris: ' . $product[0]['Price'] . ' SEK</p>';
		    $html .= '<p>Lagersaldo: ' . $product[0]['Amount'] . '</p>';
		        $html .= form_open( 'cart/AddToCart');
		            $html .= form_hidden( 'ProductID', $product[0]['ProductID'] );
					$html .= form_label( 'Amount: ', 'product_amount' );
					$html .= form_input( array( 'name' => 'product_amount', 'id' => 'product_amount', 'value' => '1', 'maxlength' => '3', 'size' => '3' ) ) . '<br />';
			    $html .= form_submit( 'cart_submit', 'Lägg till' );
		        $html .= form_close();
				
				$html .= anchor('index/index', '&laquo; Gå tillbaka' );
		$html .= '</div>';
		
		echo $html;
?>
<div class="clear"></div>
</div>
</div>
</body>
</html>
